	const container = document.getElementById('starContainer');// 蓝色星型：共5行，每行数量为 1、3、5、7、9for (let i = 0; i < 5; i++) {
   const stars = '*'.repeat(2 * i + 1);
   const line = document.createElement('div');
   line.style.color = 'blue';
   line.textContent = stars;
   container.appendChild(line);}// 红色星型：共5行，每行数量为 9、7、5、3、1for (let i = 4; i >= 0; i--) {
   const stars = '*'.repeat(2 * i + 1);
   const line = document.createElement('div');
   line.style.color = 'red';
   line.textContent = stars;
   container.appendChild(line);}